<include file="SpStore:header" />
		<!----《/头部结束》----->
		<div class="ncsc-layout wrapper">
<include file="SpStore:goods_left" />

			<div id="layoutRight" class="ncsc-layout-right">
				<div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心<i class="icon-angle-right"></i>商品<i class="icon-angle-right"></i>商品发布</div>
				<div class="main-content" id="mainContent">

					<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/jquery.ui.css">
					<style type="text/css">
						#fixedNavBar {
							filter: progid: DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#CCFFFFFF', endColorstr='#CCFFFFFF');
							background: rgba(255, 255, 255, 0.8);
							width: 90px;
							margin-left: 510px;
							border-radius: 4px;
							position: fixed;
							z-index: 999;
							top: 172px;
							left: 50%;
						}
						
						#fixedNavBar h3 {
							font-size: 12px;
							line-height: 24px;
							text-align: center;
							margin-top: 4px;
						}
						
						#fixedNavBar ul {
							width: 80px;
							margin: 0 auto 5px auto;
						}
						
						#fixedNavBar li {
							margin-top: 5px;
						}
						
						#fixedNavBar li a {
							font-family: Arial, Helvetica, sans-serif;
							font-size: 12px;
							line-height: 20px;
							background-color: #F5F5F5;
							color: #999;
							text-align: center;
							display: block;
							height: 20px;
							border-radius: 10px;
						}
						
						#fixedNavBar li a:hover {
							color: #FFF;
							text-decoration: none;
							background-color: #27a9e3;
						}
						.goods-gallery .list li{
							list-style-type:none;
						}
					</style>

					<div id="fixedNavBar">
						<h3>页面导航</h3>
						<ul>
							<li>
								<a id="demo1Btn" href="#demo1" class="demoBtn">基本信息</a>
							</li>
							<li>
								<a id="demo2Btn" href="#demo2" class="demoBtn">详情描述</a>
							</li>
							<li>
								<a id="demo3Btn" href="#demo3" class="demoBtn">特殊商品</a>
							</li>
							<li>
								<a id="demo4Btn" href="#demo4" class="demoBtn">物流运费</a>
							</li>
							<li>
								<a id="demo5Btn" href="#demo5" class="demoBtn">发票信息</a>
							</li>
							<li>
								<a id="demo6Btn" href="#demo6" class="demoBtn">其他信息</a>
							</li>
						</ul>
					</div>
					<ul class="add-goods-step">
						<li><i class="icon icon-list-alt"></i>
							<h6>STEP.1</h6>
							<h2>选择商品分类</h2>
							<i class="arrow icon-angle-right"></i> </li>
						<li class="current"><i class="icon icon-edit"></i>
							<h6>STEP.2</h6>
							<h2>填写商品详情</h2>
							<i class="arrow icon-angle-right"></i> </li>
						<li><i class="icon icon-camera-retro "></i>
							<h6>STEP.3</h6>
							<h2>上传商品图片</h2>
							<i class="arrow icon-angle-right"></i> </li>
						<li><i class="icon icon-ok-circle"></i>
							<h6>STEP.4</h6>
							<h2>商品发布成功</h2>
						</li>
					</ul>
					<div class="item-publish">
						<form method="post" id="goods_form" action="/store/store_goods_add?op=add_step_three&commonid={$cate_id}" enctype="multipart/form-data"> 
							<input type="hidden" id="goods_state" name="goods_state" value="{$goods_wts.goods_state}" class="text">
							<div class="ncsc-form-goods">
								<h3 id="demo1">商品基本信息</h3>
								<dl>
									<dt>商品分类：</dt>
									<dd id="gcategory"> {$class}
										<a class="ncsc-btn" href="/store/store_goods_add?op=edit_step_two&goodsid={$goods_wts.id}">编辑</a>
										<input type="hidden" id="cate_id" name="cate_id" value="{$cate_id}" class="text">
										<input type="hidden" name="cate_name" value="{$class}" class="text">
									</dd>
								</dl>
								<dl>
									<dt><i class="required">*</i>商品名称：</dt>
									<dd>
										<input name="g_name" type="text" class="text w400" value="{$goods_wts.productname}">
										<span></span>
										<p class="hint">商品标题名称长度至少3个字符，最长50个汉字</p>
									</dd>
								</dl>
								<dl>
									<dt>商品卖点：</dt>
									<dd>
										<textarea name="g_jingle" class="textarea h60 w400">{$goods_wts.goods_jingle}</textarea>
										<span></span>
										<p class="hint">商品卖点最长不能超过140个汉字</p>
									</dd>
								</dl>
								
								<dl>
									<dt>选择产品发布的分区：</dt>
									<dd>
										<ul class="ncsc-form-radio-list">
											<foreach name="area_list" item="vo">
											<li>
											<if condition="$vo.shop_area_id eq $shop_area">
												
												<label><input name="shop_area_ids[]" value="{$vo.shop_area_id}" type="radio" checked>{$vo.shop_area_name}</label>
												<else />
												<if condition="$vo.shop_area_id eq '1'">
												<label><input name="shop_area_ids[]" value="{$vo.shop_area_id}" type="radio" checked>{$vo.shop_area_name}</label>
												<else/>
												<label><input name="shop_area_ids[]" value="{$vo.shop_area_id}" type="radio">{$vo.shop_area_name}</label>
												</if>
											</if>
											</li>
											</foreach>
										</ul>
										<p class="hint"></p>
									</dd>
								</dl>
								<font id="change_sp"></font>
								<dl>
									<dt><i class="required">*</i>市场价：</dt>
									<dd>
										<input name="g_marketprice" value="{$goods_wts.goods_marketprice}" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span>
										<p class="hint">价格必须是0.01~9999999之间的数字，此价格仅为市场参考售价，请根据该实际情况认真填写。</p>
									</dd>
								</dl>
								<dl>
									<dt>成本价：</dt>
									<dd>
										<input name="g_costprice" value="{$goods_wts.goods_costprice}" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span>
										<p class="hint">价格必须是0.00~9999999之间的数字，此价格为商户对所销售的商品实际成本价格进行备注记录，非必填选项，不会在前台销售页面中显示。</p>
									</dd>
								</dl>
								<dl>
									<dt>折扣：</dt>
									<dd>
										<input name="g_discount" value="{$goods_wts.goods_discount}" type="text" class="text w60" readonly="readonly" style="background:#E7E7E7 none;"><em class="add-on">%</em>
										<p class="hint">根据销售价与市场价比例自动生成，不需要编辑。</p>
									</dd>
								</dl>								
								
								
								<dl nc_type="spec_group_dl_0" nctype="spec_group_dl" class="spec-bg" spec_img="t">
										<dt>
										  <input name="sp_name[1]" type="text" class="text w60 tip2 tr" title="自定义规格类型名称，规格值名称最多不超过4个字" value="颜色" maxlength="4" nctype="spec_name" data-value="sp_value[1]" data-param="{id:1,name:'颜色'}">
										  ：</dt>
										<dd nctype="sp_group_val">
										  <ul class="spec" nctype="color">
										  <!--旧规格-->
										  <foreach name="goods_wts.goods_color" item="vo">
										   <if condition="$vo neq ''">
										  
											<!--新规格-->
										   <if condition="$vo.id gt 0">
											<li><span nctype="input_checkbox"><input type="checkbox" value="{$vo.name}" class="sp_val" nc_type="{$vo.id}" name="sp_name[1][{$vo.id}][name]" checked="checked"></span><span nctype="pv_name">{$vo.name}</span>
											<input type="hidden" value="{$vo.id}" class="sp_val" name="sp_name[1][{$vo.id}][id]" >
											<input type="hidden" value="{$vo.size}" class="sp_val" name="sp_name[1][{$vo.id}][size]" nctype="size1">
											</li>
											<else />
											<li><span nctype="input_checkbox"><input type="checkbox" value="{$vo}" class="sp_val" nc_type="{$key+1}" name="sp_name[1][{$key+1}][name]" checked="checked"></span><span nctype="pv_name">{$vo}</span>
											<input type="hidden" value="{$key+1}" class="sp_val" name="sp_name[1][{$key+1}][id]" >
											<input type="hidden" value="" class="sp_val" name="sp_name[1][{$key+1}][size]" nctype="size1">
											</li>											
											</if>
											</if>
											</foreach>
																					
											<li data-param="sadd">
											  <div nctype="specAdd1"><a href="javascript:void(0);" class="ncsc-btn" nctype="specAdd"><i class="icon-plus"></i>添加规格值</a></div>
											  <div nctype="specAdd2" style="display:none;">
												<input class="text w60" type="text" placeholder="规格值名称" maxlength="20">
												<a href="javascript:void(0);" nctype="specAddSubmit" class="ncsc-btn ncsc-btn-acidblue ml5 mr5">确认</a><a href="javascript:void(0);" nctype="specAddCancel" class="ncsc-btn ncsc-btn-orange">取消</a></div>
											</li>
										  </ul>
										</dd>
								</dl>
								<dl nc_type="spec_group_dl_1" nctype="spec_group_dl" class="spec-bg" spec_img="t">
										<dt>
										  <input name="sp_name[2]" type="text" class="text w60 tip2 tr" title="自定义规格类型名称，规格值名称最多不超过4个字" value="规格" maxlength="4" nctype="spec_name" data-value="sp_value[2]" data-param="{id:2,name:'规格'}">
										  ：</dt>
										<dd nctype="sp_group_val">
										  <ul class="spec" nctype="color">
										   <!--旧规格-->
										  
										  <foreach name="goods_wts.goods_spec" item="vo">
										  <if condition="$vo.name neq ''">
										   <if condition="$vo.size eq ''">
											<li><span nctype="input_checkbox"><input type="checkbox" value="{$vo.name}" class="sp_val" nc_type="{$key+1}" name="sp_name[2][{$key+1}][name]" checked="checked"></span><span nctype="pv_name">{$vo.name}</span><input type="hidden" value="{$key+1}" class="sp_val" name="sp_name[2][{$key+1}][id]" >
											<input type="hidden" value="" class="sp_val" name="sp_name[2][{$key+1}][size]" nctype="size2">
											</li>
											</if>
											<!--新规格-->
										   <if condition="$vo.size neq ''">
										   
											<li><span nctype="input_checkbox"><input type="checkbox" value="{$vo.name}" class="sp_val" nc_type="{$vo.id}" name="sp_name[2][{$vo.id}][name]" checked="checked"></span><span nctype="pv_name">{$vo.name}</span><input type="hidden" value="{$vo.id}" class="sp_val" name="sp_name[2][{$vo.id}][id]" >
											<input type="hidden" value="{$vo.size}" class="sp_val" name="sp_name[2][{$vo.id}][size]" nctype="size2">
											</li>
											
											</if>
											</if>
										 </foreach>
										 
											<li data-param="">
											  <div nctype="specAdd1"><a href="javascript:void(0);" class="ncsc-btn" nctype="specAdd"><i class="icon-plus"></i>添加规格值</a></div>
											  <div nctype="specAdd2" style="display:none;">
												<input class="text w60" type="text" placeholder="规格值名称" maxlength="20">
												<a href="javascript:void(0);" nctype="specAddSubmit" class="ncsc-btn ncsc-btn-acidblue ml5 mr5">确认</a><a href="javascript:void(0);" nctype="specAddCancel" class="ncsc-btn ncsc-btn-orange">取消</a></div>
											</li>
										  </ul>
										</dd>
								</dl>								
								<dl nc_type="spec_dl" class="spec-bg"  style="<if condition="$goods_wts.goods_spec_arr eq ''">display:none; </if>overflow: visible;" >
									<dt>库存配置：</dt>
									<dd class="spec-dd">
										<table border="0" cellpadding="0" cellspacing="0" class="spec_table">
											<thead>
												<tr>
													<th nctype="spec_name_1">颜色</th>
													<th nctype="spec_name_15">规格</th>			
													<th class="w90"><span class="red">*</span>市场价
														<div class="batch"><i class="icon-edit" title="批量操作"></i>
															<div class="batch-input" style="display:none;">
																<h6>批量设置价格：</h6>
																<a href="javascript:void(0)" class="close">X</a>
																<input name="" type="text" class="text price">
																<a href="javascript:void(0)" class="ncsc-btn-mini" data-type="marketprice">设置</a><span class="arrow"></span></div>
														</div>
													</th>
													<th class="w90"><span class="red">*</span><font id="market_th">价格</font>
														<div class="batch"><i class="icon-edit" title="批量操作"></i>
															<div class="batch-input" style="display:none;">
																<h6>批量设置价格：</h6>
																<a href="javascript:void(0)" class="close">X</a>
																<input name="" type="text" class="text price">
																<a href="javascript:void(0)" class="ncsc-btn-mini" data-type="price" id="change_type">设置</a><span class="arrow"></span></div>
														</div>
													</th>
													<th class="" style="display:none;"><span class="red">*</span><font id="points_th">积分价</font>
														<div class="batch"><i class="icon-edit" title="批量操作"></i>
															<div class="batch-input" style="display:none;">
																<h6>批量设置价格：</h6>
																<a href="javascript:void(0)" class="close">X</a>
																<input name="" type="text" class="text point">
																<a href="javascript:void(0)" class="ncsc-btn-mini" data-type="point_num">设置</a><span class="arrow"></span></div>
														</div>
													</th>
													<th class="w60"><span class="red">*</span>库存
														<div class="batch"><i class="icon-edit" title="批量操作"></i>
															<div class="batch-input" style="display:none;">
																<h6>批量设置库存：</h6>
																<a href="javascript:void(0)" class="close">X</a>
																<input name="" type="text" class="text stock">
																<a href="javascript:void(0)" class="ncsc-btn-mini" data-type="stock">设置</a><span class="arrow"></span></div>
														</div>
													</th>
													<th class="w70">预警值
														<div class="batch"><i class="icon-edit" title="批量操作"></i>
															<div class="batch-input" style="display:none;">
																<h6>批量设置预警值：</h6>
																<a href="javascript:void(0)" class="close">X</a>
																<input name="" type="text" class="text stock">
																<a href="javascript:void(0)" class="ncsc-btn-mini" data-type="alarm">设置</a><span class="arrow"></span></div>
														</div>
													</th>
													<th class="w100">商家货号</th>
												</tr>
											</thead>
											<tbody nc_type="spec_table">
												<foreach name="goods_wts.goods_spec_arr" item="vo" >
													<?php 
												$goods_wts["goods_spec_arr"][$key]['color'] = explode('|',$key); ?>
												
												<if condition="$goods_wts[goods_color] [$goods_wts[goods_spec_arr][$key][color][0]] [name] neq ''">
												
												<tr>
												
												<td><input type="hidden" value="<?php  echo $goods_wts['goods_color'] [$goods_wts["goods_spec_arr"][$key]['color'][0]] ['name'];
												?>">
												<?php
												echo $goods_wts['goods_color'] [$goods_wts["goods_spec_arr"][$key]['color'][0]] ['name'];
												?>
												</td>
												
												<td><input type="hidden" value="
												<?php 
												echo $goods_wts['goods_spec'] [$goods_wts["goods_spec_arr"][$key]['color'][1]] ['name'];
												?>
												">
												<?php 
												echo $goods_wts['goods_spec'] [$goods_wts["goods_spec_arr"][$key]['color'][1]] ['name'];
												?>
												
												</td>
												<td>
													<input class="text price" type="text" name="spec[{$key}][marketprice]" data_type="marketprice" nc_type="{$key}|marketprice" value="{$vo.marketprice}">
													<em class="add-on"><i class="icon-renminbi"></i></em>
												</td>
												<td>
													<input class="text price" type="text" name="spec[{$key}][price]" data_type="price" nc_type="{$key}|price" value="{$vo.price}">
													<em class="add-on"><i class="icon-renminbi"></i></em>
												</td>
												<if condition="$vo.point_num neq ''">
												<td>
													<input class="text price" type="text" name="spec[{$key}][point_num]" data_type="point_num" nc_type="{$key}|point_num" value="{$vo.point_num}">
													<em class="add-on"><i class="icon-renminbi"></i></em>
												</td>	
												<script>
													$("#points_th").parent().show();

												</script>
												</if>
												<td>
													<input class="text stock" type="text" name="spec[{$key}][stock]" data_type="stock" nc_type="{$key}|stock" value="{$vo.stock}">
												</td>
												<td>
													<input class="text stock" type="text" name="spec[{$key}][alarm]" data_type="alarm" nc_type="{$key}|alarm" value="{$vo.alarm}">
												</td>
												<td>
													<input class="text sku" type="text" name="spec[{$key}][sku]" nc_type="{$key}|sku" value="{$vo.sku}">
												</td>
												
												</tr>
												</if>
												 </foreach>
												
											</tbody>
										</table>
										<p class="hint">点击<i class="icon-edit"></i>可批量修改所在列的值。</p>
									</dd>
								</dl>
								<dl>
									<dt nc_type="no_spec"><i class="required">*</i>商品库存：</dt>
									<dd nc_type="no_spec">
										<input name="g_storage" value="{$goods_wts.goods_storage}" type="text" class="text w60">
										<span></span>
										<p class="hint">商铺库存数量必须为0~999999999之间的整数<br>若启用了库存配置，则系统自动计算商品的总数，此处无需卖家填写</p>
									</dd>
								</dl>
								<dl>
									<dt>库存预警值：</dt>
									<dd>
										<input name="g_alarm" value="{$goods_wts.goods_alarm}" type="text" class="text w60">
										<span></span>
										<p class="hint">设置最低库存预警值。当库存低于预警值时商家中心商品列表页库存列红字提醒。<br> 请填写0~255的数字，0为不预警。
										</p>
									</dd>
								</dl>
								<dl>
									<dt nc_type="no_spec">商家货号：</dt>
									<dd nc_type="no_spec">
										<p>
											<input name="g_serial" value="{$goods_wts.number}" type="text" class="text">
										</p>
										<p class="hint">商家货号是指商家管理商品的编号，买家不可见<br>最多可输入20个字符，支持输入中文、字母、数字、_、/、-和小数点</p>
									</dd>
								</dl>
								<dl>
									<dt><i class="required">*</i>商品图片：</dt>
									<dd>
										<div class="ncsc-goods-default-pic">
											<div class="goodspic-uplaod">
												<div class="upload-thumb"> <img id="demo_image" src="{$goods_wts.pic}"> </div>
												<input type="hidden" name="image_path" id="image_path"  value="{$goods_wts.pic}">
												<span></span>
												<p class="hint">上传商品默认主图，如多规格值时将默认使用该图或分规格上传各规格主图；支持jpg、gif、png格式上传或从图片空间中选择，建议使用
													<font color="red">尺寸800x800像素以上、大小不超过1M的正方形图片</font>，上传后的图片将会自动保存在图片空间的默认分类中。</p>
												<div class="handle">
													<div class="ncsc-upload-btn">
														<a href="javascript:void(0);">
															<span>
															
															  <input type="file" hidefocus="true" size="1" class="input-file" name="goods_image" id="goods_image" value="">
															</span>
															
															<p><i class="icon-upload-alt"></i>图片上传</p>
															
															
														</a>
													</div>
													
													<a href="javascript:void(0);" class="ncsc-btn mt5" id="show_image" ><i class="icon-picture"></i>从图片空间选择</a>
													<a href="javascript:void(0);" id="del_goods_demo" class="ncsc-btn mt5" style="display: none;"><i class="icon-circle-arrow-up"></i>关闭相册</a>
												</div>
											</div>
										</div>
										<div id="demo"></div>
									</dd>
								</dl>

								<h3 id="demo2">商品详情描述</h3>
<!-- 								<dl style="overflow: visible;">
									<dt>商品品牌：</dt>
									<dd>
										<div class="ncsc-brand-select">
											<div class="selection">
												<input name="b_name" id="b_name" value="{$goods_wts.bran_id}" type="text" class="text w180" readonly="readonly">
												<input type="hidden" name="b_id" id="b_id" value="">
										</div>
									</dd>
								</dl> -->
								

								
								<dl>
									<dt>商品描述：</dt>
									<dd id="ncProductDetails">
										<div class="tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
											<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" jquery1239647486215="2">
												<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active">
													<a href="#panel-1" jquery1239647486215="8"><i class="icon-desktop"></i> 电脑端</a>
												</li>
												<li class="selected ui-state-default ui-corner-top">
													<a href="#panel-2" jquery1239647486215="9"><i class="icon-mobile-phone"></i>手机端</a>
												</li>
											</ul>
											<div id="panel-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom" jquery1239647486215="4">
												<textarea id="g_body" name="g_body" style="width: 100%; height: 480px; visibility: hidden; display: none; visibility: hidden;">{$goods_wts.content|html_entity_decode}</textarea>
												<script src="__PUBLIC__/Home/js/kindeditor-min.js" charset="utf-8"></script>
												<script src="__PUBLIC__/Home/js/zh_CN.js" charset="utf-8"></script>
												
												
												<script>
													var KE;
													KindEditor.ready(function(K) {
														KE = K.create("textarea[name='g_body']", {
															items: ['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
																'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
																'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
																'superscript', '|', 'selectall', 'clearhtml', 'quickformat', '|',
																'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
																'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'flash', 'media', 'table', 'hr', 'emoticons', 'link', 'unlink', '|', 'about'
															],
															cssPath: "__PUBLIC__/Home/css/default.css",
															allowImageUpload: false,
															allowFlashUpload: false,
															allowMediaUpload: false,
															allowFileManager: false,
															syncType: "form",
															afterCreate: function() {
																var self = this;
																self.sync();
															},
															afterChange: function() {
																var self = this;
																self.sync();
															},
															afterBlur: function() {
																var self = this;
																self.sync();
															}
														});
														KE.appendHtml = function(id, val) {
															this.html(this.html() + val);
															if(this.isCreated) {
																var cmd = this.cmd;
																cmd.range.selectNodeContents(cmd.doc.body).collapse(false);
																cmd.select();
															}
															return this;
														}
													});
												</script>
												<div class="hr8">
													<div class="ncsc-upload-btn">
													
														<a href="javascript:void(0);">
															<span>
										                  		<input type="file" hidefocus="true" size="1" class="input-file" name="add_album" id="add_album" multiple="multiple">
										                  	</span>
															<p><i class="icon-upload-alt" data_type="0" id="add_album_i"></i>图片上传</p>
														</a>
													</div>
													
													<a href="javascript:void(0);" class="ncsc-btn mt5" id="show_desc" ><i class="icon-picture"></i>插入相册图片</a>
													<a href="javascript:void(0);" id="del_desc" class="ncsc-btn mt5" style="display: none;"><i class=" icon-circle-arrow-up"></i>关闭相册</a>
												</div>
												<div id="des_demo"></div>
											</div>
											<div id="panel-2" class="ui-tabs-panel ui-tabs-hide ui-widget-content ui-corner-bottom" jquery1239647486215="5">
												<div class="ncsc-mobile-editor">
													<div class="pannel">
														<div class="size-tip"><span nctype="img_count_tip">图片总数得超过<em>20</em>张</span><i>|</i><span nctype="txt_count_tip">文字不得超过<em>5000</em>字</span></div>
														<div class="control-panel" nctype="mobile_pannel">
															<div class="module m-imag"><div class="tools"><a nctype="mp_del" href="javascript:void(0);">删除</a></div><div class="content"><div class="image-div"><img src="__PUBLIC__/Home/images/web-2-25-1-33.jpg"></div></div></div>
														</div>
														<div class="add-btn">
															<ul class="btn-wrap">
																<li>
																	<a href="javascript:void(0);" nctype="mb_add_img"><i class="icon-picture"></i>
																		<p>图片</p>
																	</a>
																</li>
																<li>
																	<a href="javascript:void(0);" nctype="mb_add_txt"><i class="icon-font"></i>
																		<p>文字</p>
																	</a>
																</li>
															</ul>
														</div>
													</div>
													<div class="explain">
														<dl>
															<dt>1、基本要求：</dt>
															<dd>（1）手机详情总体大小：图片+文字，图片不超过20张，文字不超过5000字；</dd>
															<dd>建议：所有图片都是本宝贝相关的图片。</dd>
														</dl>
														<dl>
															<dt>2、图片大小要求：</dt>
															<dd>（1）建议使用宽度480 ~ 620像素、高度小于等于960像素的图片；</dd>
															<dd>（2）格式为：JPG\JEPG\GIF\PNG；</dd>
															<dd>举例：可以上传一张宽度为480，高度为960像素，格式为JPG的图片。</dd>
														</dl>
														<dl>
															<dt>3、文字要求：</dt>
															<dd>（1）每次插入文字不能超过500个字，标点、特殊字符按照一个字计算；</dd>
															<dd>（2）请手动输入文字，不要复制粘贴网页上的文字，防止出现乱码；</dd>
															<dd>（3）以下特殊字符“&lt;”、“&gt;”、“"”、“'”、“\”会被替换为空。</dd>
															<dd>建议：不要添加太多的文字，这样看起来更清晰。</dd>
														</dl>
													</div>
												</div>

												<div class="ncsc-mobile-edit-area" nctype="mobile_editor_area">
													<div nctype="mea_img" class="ncsc-mea-img" style="">
														<div class="goods-gallery add-step2"><a class="sample_demo" id="select_submit" href="#" style="display:none;">提交</a>
														  <div class="nav">
														  	<span class="l">用户相册 &gt;
														        全部图片        
														  	</span>
														  	<span class="r">
															    <select name="jumpMenu" id="jumpMenu" style="width:100px;" class="valid">
															      	<option value="0" style="width:80px;">请选择...</option>
												            		<option style="width:80px;" value="2">默认相册</option>
													          	</select>
														    </span>
														  </div>
														    <ul class="list">
														        <li src="__PUBLIC__/Home/images/web-2-28-1.png"><a href="JavaScript:void(0);"><img src="__PUBLIC__/Home/images/web-2-28-1.png" title="default_user_portrait"></a></li>
														        <li src="__PUBLIC__/Home/images/web-2-25-1-33.jpg"><a href="JavaScript:void(0);"><img src="__PUBLIC__/Home/images/web-2-25-1-33.jpg" title="hd-and-btm"></a></li>
														        <li src="__PUBLIC__/Home/images/web-2-25-1-34.jpg"><a href="JavaScript:void(0);"><img src="__PUBLIC__/Home/images/web-2-25-1-34.jpg" title="58c5fea9ad0a49564c8b45ef_400x400"></a></li>
														        <li src="__PUBLIC__/Home/images/web-2-28-2.png"><a href="JavaScript:void(0);"><img src="__PUBLIC__/Home/images/web-2-28-2.png" title="58c5fea9ad0a49564c8b45ef_400x400"></a></li>
														      </ul>
														    <div class="pagination"><ul><li><span>首页</span></li><li><span>上一页</span></li><li><span class="currentpage">1</span></li><li><span>下一页</span></li><li><span>末页</span></li></ul></div>
														</div>
													</div>
													<div class="ncsc-mea-text" nctype="mea_txt" style="display: block;">
														<p id="meat_content_count" class="text-tip">请在下面文本框输入内容</p>
														<textarea class="textarea valid" nctype="meat_content"></textarea>
														<div class="button">
															<a class="ncsc-btn ncsc-btn-blue" nctype="meat_submit" href="javascript:void(0);">确认</a>
															<a class="ncsc-btn ml10" nctype="meat_cancel" href="javascript:void(0);">取消</a>
														</div>
													</div>
												</div>
												<input name="m_body" autocomplete="off" type="hidden" value="">
											</div>
										</div>
									</dd>
								</dl>
								<dl>
								<script type="text/javascript">
									$(function(){
										var butDiv_1 = '<div class="module m-imag">';
										var butDiv_2 = '<div class="tools">';
										var imgDiv_1 = '<div class="content">';
										var imgDiv_2 = '<div class="image-div">';
										var tools_but = '<a nctype="mp_del" href="javascript:void(0);">删除</a>'
										var divEnd = '</div>'
										$('.list>li').click(function(){
											var imgsrc = '<img src='+$(this).attr('src')+'/>';
											$('.control-panel').append(butDiv_1 + (butDiv_2+tools_but+divEnd) + (imgDiv_1+imgDiv_2+imgsrc+divEnd+divEnd)+divEnd)
										})
										$('a[nctype="meat_submit"]').click(function(){
											var txt = $('textarea[nctype="meat_content"]').val();
											var txtP = '<p>'+txt+'</p>'
											$('.control-panel').append(butDiv_1 + (butDiv_2+tools_but+divEnd) + (imgDiv_1+imgDiv_2+txtP+divEnd) + divEnd)
										})
										
										$('.content').live("click",function(){
											
											$(this).parent('.module').addClass('current').siblings().removeClass('current');
											
										})
										$('a[nctype="mp_del"]').live("click",function(){
											$(this).parents('.module').remove()
										})
									})
								</script>									
								</dl>

								<dl class="special-03" nctype="is_presell" style="display:none;">
									<dt><i class="required">*</i>发货日期：</dt>
									<dd>
										<input type="text" name="g_deliverdate" id="g_deliverdate" class="w80 text hasDatepicker" value="" readonly="readonly"><em class="add-on"><i class="icon-calendar"></i></em>
										<span></span>
										<p class="hint">商家发货时间。</p>
									</dd>
								</dl>
								<!-- 预售商品 E -->
								<!-- 商品物流信息 S -->
								<h3 id="demo4">商品物流信息</h3>
								<dl>
									<dt>所在地：</dt>
									<dd id="select_pca">
										<select id="shop_province">							
											<option value="">-请选择-</option>
											<volist name="code" id="vo">
											<option value="{$vo.area_id}">{$vo.area_name}</option>
											</volist>
										</select>
										<!-- <input type="hidden" value="" name="region" id="region"> -->
										<input type="hidden" value="" name="province_id" id="_area_1">
										<input type="hidden" value="" name="city_id" id="_area_2">
										<p></p>
									</dd>
								</dl>
								<dl nctype="virtual_null">
									<dt>运费：</dt>
									<dd>
										<ul class="ncsc-form-radio-list">
											<li>
												<input id="freight_0" nctype="freight" name="freight" class="radio" type="radio" checked="checked" value="0">
												<label for="freight_0">固定运费</label>
												<div nctype="div_freight">
													<input id="g_freight" class="w50 text" nc_type="transport" type="text" value="{$goods_wts.goods_freight}" name="g_freight"><em class="add-on"><i class="icon-renminbi"></i></em> </div>
											</li>
											<li>
												<input id="freight_1" nctype="freight" name="freight" class="radio" type="radio" value="1">
												<label for="freight_1">使用售卖区域</label>
												<div nctype="div_freight" style="display: none;">
													<input id="transport_id" type="hidden" value="" name="transport_id">
													<input id="transport_title" type="hidden" value="" name="transport_title">
													<span id="postageName" class="transport-name"></span>
													<a href="JavaScript:void(0);" onclick="window.open('index.php?act=store_transport&amp;type=select')" class="ncbtn" id="postageButton"><i class="icon-truck"></i>选择售卖区域</a>
												</div>
											</li>
										</ul>
										<p class="hint">运费设置为 0 元，前台商品将显示为免运费。</p>
									</dd>
								</dl>
								<!-- 商品物流信息 E -->
								<h3 id="demo5" nctype="virtual_null">发票信息</h3>
								<dl nctype="virtual_null">
									<dt>是否开增值税发票：</dt>
									<dd>
										<ul class="ncsc-form-radio-list">
											<li>
												<label>
												<input name="g_vat" value="1" type="radio">
												是</label>
											</li>
											<li>
												<label>
												<input name="g_vat" value="0" checked="checked" type="radio">
												否</label>
											</li>
										</ul>
										<p class="hint"></p>
									</dd>
								</dl>
								<h3 id="demo6">其他信息</h3>
									<input name="sgcate_id" value="0" type="hidden" checked="checked">
<!-- 								<dl>
									<dt>本店分类：</dt>
									<dd><span class="new_add"><a href="javascript:void(0)" id="add_sgcategory" class="ncsc-btn">新增分类</a> </span>
										<select name="sgcate_id[]" class="sgcategory">
											<option value="0">请选择...</option>
										</select>
										<p class="hint">商品可以从属于店铺的多个分类之下，店铺分类可以由 "商家中心 -&gt; 店铺 -&gt; 店铺分类" 中自定义</p>
									</dd>
								</dl> -->
								<dl>
									<dt>商品发布：</dt>
									<dd>
										<ul class="ncsc-form-radio-list">
											<li>
												<label><input name="g_state" value="1" type="radio" <if condition="$goods_wts.goods_state eq '1'">checked="checked"</if>  <if condition="$goods_wts.id eq ''">checked="checked"</if>
												<if condition="$goods_wts.goods_state eq '10'">checked="checked"</if>
												>立即发布 </label>
											</li>
											<li>
								              	<label><input name="g_state" value="0" type="radio" <if condition="$goods_wts.goods_state eq '0'">checked="checked"</if>>放入仓库 </label>
								            </li>
										</ul>
									</dd>
								</dl>
								<dl>
									<dt>商品推荐：</dt>
									<dd>
										<ul class="ncsc-form-radio-list">
											<li>
												<label>
												<input name="g_commend" value="1" <if condition="$goods_wts.goods_commend eq '1'">checked="checked"</if> <if condition="$goods_wts.id eq ''">checked="checked"</if>type="radio">
												是</label>
											</li>
											<li>
												<label>
												<input name="g_commend" value="0" type="radio" <if condition="$goods_wts.goods_commend eq '0'">checked="checked"</if>>
												否</label>
											</li>
										</ul>
										<p class="hint">被推荐的商品会显示在店铺首页</p>
									</dd>
								</dl>
							</div>
							<div class="bottom tc hr32">
								<label class="submit-border">
									<input type="submit" class="submit" value="下一步，上传商品图片">
								  </label>
							</div>
						</form>
					</div>
					<script>
						var gid = '' ;
						gid = '{$goods_wts.id}' ;
					</script>
					<script type="text/javascript" src="__PUBLIC__/Home/js/store_goods_add.step2_1.js" ></script>
					<script type="text/javascript" src="__PUBLIC__/Home/js/store_goods_add.step2.js" ></script>					
					<script type="text/javascript">
								var min_v = '' ;
								var result = '' ;
								//$(function() {
								console.log(size_json);
								result = min_value(size_json);
								min_v = result.min;
								p_min_v = result.p_min;
								
								if (!val_s) {
									val_s = $("input[name='shop_area_ids[]']:checked").val();
								}
									price_name(name_h,val_s);

									if(val_s==="1" || val_s==="4"){
										var v_price = "{$goods_wts.price}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
										 }
										 htm_s = '<dl><dt nc_type="no_spec"><i class="required">*</i><font >商品价格</font>：</dt><dd nc_type="no_spec"><input name="g_price"  id="g_price"  value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
										 htm_s += '<dl><dt nc_type="no_spec"><font>赠送增值币</font>：</dt><dd nc_type="no_spec"><input name="give_coin" id="give_coin" value="{$goods_wts.give_coin}" type="text" class="text w60"><span></span><p class="hint">增值币必须是1~9999999之间的数字</p></dd></dl>' ;
									} else if(val_s==="2"){
										var v_price = "{$goods_wts.point_num}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
										 }
										htm_s = '<dl><dt nc_type="no_spec"><i class="required">*</i><font >积分抵扣数</font>：</dt><dd nc_type="no_spec"><input name="point_num" id="point_num" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
										
									} else if (val_s==="3") {
										var v_price = "{$goods_wts.price}" ;
										var v_point = "{$goods_wts.point_num}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
											v_point = p_min_v ;
										 }
										htm_s = '<dl><dt nc_type="no_spec"><i class="required">*</i><font id="sp_price_name">商品现金价</font>：</dt><dd nc_type="no_spec"><input name="g_price" id="g_price" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
										htm_s += '<dl><dt nc_type="no_spec"><i class="required">*</i><font id="sp_price_name">积分抵扣数</font>：</dt><dd nc_type="no_spec"><input name="point_num" id="point_num" value="{$goods_wts.point_num}" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是1~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
									} else if (val_s==="5") {
										var v_price = "{$goods_wts.coin_num}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
										 }
										htm_s = '<dl><dt nc_type="no_spec"><i class="required">*</i><font id="sp_price_name">增值币金额</font>：</dt><dd nc_type="no_spec"><input name="coin_num" id="coin_num" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
									}
									$("#change_sp").html(htm_s);								

								$('input[name="shop_area_ids[]"]').live('click',function(){
									var vals = $(this).val();
									var htm = '' ;
									if (vals) {
										val_s = vals ;
									}
									if(vals==="1" || vals==="4"){
										var v_price = "{$goods_wts.price}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
										 }
										 htm = '<dl><dt nc_type="no_spec"><i class="required">*</i><font id="sp_price_name">商品价格</font>：</dt><dd nc_type="no_spec"><input name="g_price" id="g_price" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
										 htm += '<dl><dt nc_type="no_spec"><font>赠送增值币</font>：</dt><dd nc_type="no_spec"><input name="give_coin" id="give_coin" value="{$goods_wts.give_coin}" type="text" class="text w60"><span></span><p class="hint">增值币必须是1~9999999之间的数字</p></dd></dl>' ;
									} else if(vals==="2"){
										var v_price = "{$goods_wts.point_num}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
										 }
										htm = '<dl><dt nc_type="no_spec"><i class="required">*</i><font>积分抵扣数</font>：</dt><dd nc_type="no_spec"><input name="point_num" id="point_num" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是1~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
										
									} else if (vals==="3") {
										var v_price = "{$goods_wts.price}" ;
										var v_point = "{$goods_wts.point_num}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
											v_point = p_min_v ;
										 }										
										htm = '<dl><dt nc_type="no_spec"><i class="required">*</i><font id="sp_price_name">商品现金价</font>：</dt><dd nc_type="no_spec"><input name="g_price" id="g_price" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
										htm += '<dl><dt nc_type="no_spec"><i class="required">*</i><font>积分抵扣数</font>：</dt><dd nc_type="no_spec"><input name="point_num" id="point_num" value="'+p_min_v+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是0.01~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
									} else if (vals==="5") {
										var v_price = "{$goods_wts.coin_num}" ;
										 if(!v_price || min_v){
											v_price = min_v ;
										 }
										htm = '<dl><dt nc_type="no_spec"><i class="required">*</i><font>增值币金额</font>：</dt><dd nc_type="no_spec"><input name="coin_num" id="coin_num" value="'+v_price+'" type="text" class="text w60"><em class="add-on"><i class="icon-renminbi"></i></em> <span></span><p class="hint">价格必须是1~9999999之间的数字，且不能高于市场价。<br> 此价格为商品实际销售价格，如果商品存在规格，该价格显示最低价格。</p></dd></dl>' ;
									}
									//选择区
									into_array();
									//alert(val_s);
									goods_stock_set(val_s);
									$("#change_sp").html(htm);
							
								});
							
							
							//点击规格
							$("[nctype='specAdd1']").live('click',function(){
								$(this).css('display','none');
								$(this).next("[nctype='specAdd2']").css('display','block');
								
							});
							$('[nctype="specAddCancel"]').live('click',function(){
							
								$(this).parent().css('display','none');
								$(this).parent().parent().find("[nctype='specAdd1']").css('display','block');
							});
							

							//电脑端手机端tab切换
							$(".tabs").tabs();					
							
							$.validator.addMethod('checkPrice', function(value, element) {
								_g_price = parseFloat($('input[name="g_price"]').val());
								_g_marketprice = parseFloat($('input[name="g_marketprice"]').val());
								if(_g_price > _g_marketprice) {
									return false;
								} else {
									return true;
								}
							}, '<i class="icon-exclamation-sign"></i>商品价格不能高于市场价格');
							jQuery.validator.addMethod("checkFCodePrefix", function(value, element) {
								return this.optional(element) || /^[a-zA-Z]+$/.test(value);
							}, '<i class="icon-exclamation-sign"></i>请填写不多于5位的英文字母');
							$('#goods_form').validate({
								errorPlacement: function(error, element) {
									$(element).nextAll('span').append(error);
								},
								rules: {
									g_name: {
										required: true,
										minlength: 3,
										maxlength: 50
									},
									g_jingle: {
										maxlength: 140
									},
									g_price: {
										required: true,
										number: true,
										min: 0.01,
										max: 9999999,
										checkPrice: true
									},
									g_marketprice: {
										required: true,
										number: true,
										min: 0.01,
										max: 9999999
									},
									g_costprice: {
										number: true,
										min: 0.00,
										max: 9999999
									},
									g_storage: {
										required: true,
										digits: true,
										min: 0,
										max: 999999999
									},
									image_path: {
										required: true
									},
									g_vindate: {
										required: function() {
											if($("#is_gv_1").prop("checked")) {
												return true;
											} else {
												return false;
											}
										}
									},
									g_vlimit: {
										required: function() {
											if($("#is_gv_1").prop("checked")) {
												return true;
											} else {
												return false;
											}
										},
										range: [1, 10]
									},
									g_fccount: {
										required: function() {
											if($("#is_fc_1").prop("checked")) {
												return true;
											} else {
												return false;
											}
										},
										range: [1, 100]
									},
									g_fcprefix: {
										required: function() {
											if($("#is_fc_1").prop("checked")) {
												return true;
											} else {
												return false;
											}
										},
										checkFCodePrefix: true,
										rangelength: [3, 5]
									},
									g_saledate: {
										required: function() {
											if($('#is_appoint_1').prop("checked")) {
												return true;
											} else {
												return false;
											}
										}
									},
									g_deliverdate: {
										required: function() {
											if($('#is_presell_1').prop("checked")) {
												return true;
											} else {
												return false;
											}
										}
									}
								},
								messages: {
									g_name: {
										required: '<i class="icon-exclamation-sign"></i>商品名称不能为空',
										minlength: '<i class="icon-exclamation-sign"></i>商品标题名称长度至少3个字符，最长50个汉字',
										maxlength: '<i class="icon-exclamation-sign"></i>商品标题名称长度至少3个字符，最长50个汉字'
									},
									g_jingle: {
										maxlength: '<i class="icon-exclamation-sign"></i>商品卖点不能超过140个字符'
									},
									g_price: {
										required: '<i class="icon-exclamation-sign"></i>商品价格不能为空',
										number: '<i class="icon-exclamation-sign"></i>商品价格只能是数字',
										min: '<i class="icon-exclamation-sign"></i>商品价格必须是0.01~9999999之间的数字',
										max: '<i class="icon-exclamation-sign"></i>商品价格必须是0.01~9999999之间的数字'
									},
									g_marketprice: {
										required: '<i class="icon-exclamation-sign"></i>请填写市场价',
										number: '<i class="icon-exclamation-sign"></i>请填写正确的价格',
										min: '<i class="icon-exclamation-sign"></i>请填写0.01~9999999之间的数字',
										max: '<i class="icon-exclamation-sign"></i>请填写0.01~9999999之间的数字'
									},
									g_costprice: {
										number: '<i class="icon-exclamation-sign"></i>请填写正确的价格',
										min: '<i class="icon-exclamation-sign"></i>请填写0.00~9999999之间的数字',
										max: '<i class="icon-exclamation-sign"></i>请填写0.00~9999999之间的数字'
									},
									g_storage: {
										required: '<i class="icon-exclamation-sign"></i>商品库存不能为空',
										digits: '<i class="icon-exclamation-sign"></i>库存只能填写数字',
										min: '<i class="icon-exclamation-sign"></i>商铺库存数量必须为0~999999999之间的整数',
										max: '<i class="icon-exclamation-sign"></i>商铺库存数量必须为0~999999999之间的整数'
									},
									image_path: {
										required: '<i class="icon-exclamation-sign"></i>请设置商品主图'
									},
									g_vindate: {
										required: '<i class="icon-exclamation-sign"></i>请选择有效期'
									},
									g_vlimit: {
										required: '<i class="icon-exclamation-sign"></i>请填写1~10之间的数字',
										range: '<i class="icon-exclamation-sign"></i>请填写1~10之间的数字'
									},
									g_fccount: {
										required: '<i class="icon-exclamation-sign"></i>请填写1~100之间的数字',
										range: '<i class="icon-exclamation-sign"></i>请填写1~100之间的数字'
									},
									g_fcprefix: {
										required: '<i class="icon-exclamation-sign"></i>请填写3~5位的英文字母',
										rangelength: '<i class="icon-exclamation-sign"></i>请填写3~5位的英文字母'
									},
									g_saledate: {
										required: '<i class="icon-exclamation-sign"></i>请选择有效期'
									},
									g_deliverdate: {
										required: '<i class="icon-exclamation-sign"></i>请选择有效期'
									}
								}
							});
						//});
						
						
						$('.btn-wrap li').click(function(){
							var sx = $(this).index();
							
							$('.ncsc-mobile-edit-area>div').eq(sx).show().siblings().hide();
						})
								
	</script>

	
					<!-- <script src="__PUBLIC__/Home/js/Textarea.js" charset="utf-8"></script> -->
	<script src="__PUBLIC__/Home/js/scrolld.js"></script>
	<script type="text/javascript">

			$("[id*='Btn']").stop(true).on('click', function(e) {
				e.preventDefault();
				$(this).scrolld();
			})
	</script>
				</div>
			</div>
		</div>
		<script type="text/javascript">
		</script>


		<!--底部-->
	<include file="SpStore:footer" />
	</body>

</html>